package com.cnblogs.leizia.crm.workbench.dao;

import com.cnblogs.leizia.crm.workbench.domain.Customer;
import com.cnblogs.leizia.crm.workbench.domain.CustomerRemark;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 客户DAO
 *
 * @author leizi
 * @create 2021-03-30 23:26
 */
public interface CustomerDao {
    /**
     * 根据客户名称查找客户信息
     *
     * @param company
     * @return
     */
    Customer getCustomer(String company);

    /**
     * 保存客户备注信息
     *
     * @param customerRemark
     */
    void saveCustomerRemark(CustomerRemark customerRemark);

    /**
     * 保存客户
     *
     * @param customer
     */
    void saveCustomer(Customer customer);

    /**
     * 获取客户名称列表
     *
     * @return
     * @param name
     */
    List<String> getCustomerNameList(@Param("name") String name);
}
